package com.wanmait.zaisousuo.service.Impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.zaisousuo.service.AdminLogService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.wanmait.zaisousuo.pojo.AdminLog;
import com.wanmait.zaisousuo.mapper.AdminLogMapper;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class AdminLogServiceImpl implements AdminLogService {

    @Resource
    private AdminLogMapper adminLogMapper;


    @Override
    public void insert(AdminLog adminLog) {

    }

    @Override
    public void update(AdminLog object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public AdminLog findById(Integer id) {
        return null;
    }

    @Override
    public List<AdminLog> findAll() {
        return null;
    }

    @Override
    public List<AdminLog> findAll(AdminLog object) {
        return null;
    }

    @Override
    public int getDataCount() {
        return 0;
    }

    @Override
    public int getDataCount(AdminLog object) {
        return 0;
    }

    @Override
    public PageInfo<AdminLog> findList(int pageNum) {
        return null;
    }

    //根据起止时间查询管理员的操作日志
    @Override
    public List<AdminLog> findByTimeAndAdmin(Integer adminId,String startTime,String endTime) {
        return adminLogMapper.findByTimeAndAdmin(adminId,startTime,endTime);
    }

    //添加一条项目日志
    @Override
    public void insertOneLog(Integer adminId, String log) {
        adminLogMapper.insertOneLog(adminId,log);
    }

    //清空管理员日志
    @Override
    public void truncateAllLogs() {
        adminLogMapper.truncateAllLogs();
    }




}
